
<title>控制台</title>

<div class="layui-card layadmin-header">
  <div class="layui-breadcrumb" lay-filter="breadcrumb">
    <a lay-href="">控制台</a>
  </div>
</div>
<script type="text/html" template lay-url="{{ layui.setter.baseUrl }}merchadmin/tongji">
<div class="layui-fluid">
  <div class="layui-row layui-col-space15">
    <div class="layui-col-sm3">
      <div class="layui-card">
        <div class="layui-card-header">
          {{ d.data.isagent==1?'商家':'活动' }}数量
          <span class="layui-badge layui-bg-cyan layuiadmin-badge">总</span>
        </div>
        <div class="layui-card-body layuiadmin-card-list">

          <p class="layuiadmin-big-font">{{ d.data.salenum }}</p>
          <p>
            今日新增{{ d.data.isagent==1?'商家':'活动' }}
            <span class="layuiadmin-span-color">{{ d.data.salenum1 }} <i class="layui-icon">&#xe66e;</i></span>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm3">
      <div class="layui-card">
        <div class="layui-card-header">
          {{ d.data.isagent==1?'代理':'商家' }}编号
        </div>
        <div class="layui-card-body layuiadmin-card-list">
          <p class="layuiadmin-big-font">{{ d.data.member_id }}</p>
          <p>
            <br>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm3">
      <div class="layui-card">
        <div class="layui-card-header">
          点数
        </div>
        <div class="layui-card-body layuiadmin-card-list">
          <p class="layuiadmin-big-font">{{ d.data.num }}</p>
          <p>
            <br>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm3">
      <div class="layui-card">
        <div class="layui-card-header">
          过期时间
        </div>
        <div class="layui-card-body layuiadmin-card-list">
          <p class="layuiadmin-big-font">{{ d.data.endtime }}</p>
          <p>
            <br>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
          获取openid
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:300px">
          <p><img src="{{ layui.setter.baseUrl }}merchadmin/getopenid" width="270"></p>
          
          <p>
            链接：<a href="{{ d.data.mobileurl }}merch/merchadmin/getopenid" target="_blank">{{ d.data.mobileurl }}/merch/merchadmin/getopenid</a>
          </p>
        </div>
      </div>
    </div>
    <div class="layui-col-sm6">
      <div class="layui-card">
        <div class="layui-card-header">
          手机端商家后台
        </div>
        <div class="layui-card-body layuiadmin-card-list" style="height:300px">
          <p><img src="{{ layui.setter.baseUrl }}merchadmin/merchqr" width="270"></p>
          
          <p>
            链接：<a href="{{ d.data.mobileurl }}merch/merch" target="_blank">{{ d.data.mobileurl }}merch/merch</a>
          </p>
        </div>
      </div>
    </div>

  </div>
</div>
</script>
<script>
layui.use(['admin', 'laytpl'], function(data){
  var $ = layui.$
  ,admin = layui.admin
  ,element = layui.element
  ,layer = layui.layer
  ,laytpl = layui.laytpl;
});
</script>